[data-theme="light"] {
  .lightImg {
    display: block;
  }
  .darkImg {
    display: none;
  }
}
[data-theme="dark"] {
  .lightImg {
    display: none;
  }
  .darkImg {
    display: block;
  }
}
.borderBox {
  padding: 24px 24px 32px 24px;
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  background: var(--surface-brand-grey-strong);
  width: fit-content;
  a {
    text-decoration: underline;
  }
  > * {
    font-family: Inter;
    text-align: left;
    letter-spacing: 0em;
    line-height: 20px;
    font-size: 16px;
    margin: 0;
    :first-child {
      margin-top: 0;
    }
    :last-child {
      margin-bottom: 0;
    }
  }
  > p {
    margin-bottom: 16px;
    &:last-child {
      margin-bottom: 0;
    }
  }
  pre[class*="language-"] {
    background: #121521 !important;
    border: 0.7px solid #2d3748;
    code span {
      font-size: 16px;
      color: #e2e8f0 !important;
      &::before {
        color: #4a5568;
      }
    }
  }

  // Copy button styles specific to Getting Started page
  :global(.theme-code-block) {
    button[class*="copyButton"] {
      background: var(--border-primary, #2d3748);
      color: var(--Text-text-secondary, #e2e8f0);
      transition: background 0.2s ease;
      border: none;
      margin-top: 4px;
      &:hover {
        background: var(--Text-text-disabled, #4a5568);
      }
    }
  }
}

.boxTitle {
  font-family: Barlow, system-ui, Arial, sans-serif;
  font-style: normal;
  font-weight: bold;
  font-size: 2.5rem !important;
  line-height: 48px;
  letter-spacing: -0.8px;
}

.linkCardWrapper {
  border: 1px solid var(--border-color);
  padding: 20px 24px;
  border-radius: 8px;
  color: var(--main-font-color);
  transition: all 300ms ease-out;
  display: flex;
  flex-direction: column;
  text-decoration: none !important;
  background: transparent;
  &:hover {
    border-color: var(--ifm-btn-border-color-active);
    background: transparent;
    color: inherit;
  }
  &.linkCardHighlight {
    border-radius: 8px;
    border: 1px solid var(--surface-brand-default);
    background: var(--surface-brand-light);
  }
  &.quickstartCard {
    transition:
      border 0.2s ease,
      background-color 0.2s ease;
    &:hover {
      border: 1px solid var(--border-color-active, #154f47);
    }
    .title {
      gap: 8px;
      i:last-child {
        transition: transform 0.2s ease;
      }
    }
    &:hover .title i:last-child {
      transform: translateX(8px);
    }
  }
  .title {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    h2 {
      font-family: Barlow;
      border-bottom: 1px solid var(--main-font-color);
    }
    h6 {
      font-size: 18px;
      display: inline-block;
      margin: 0;
      font-family: Barlow;
      font-weight: 600;
      line-height: 24px;
      letter-spacing: 0px;
      text-align: left;
    }
  }
  p {
    font-family: Inter;
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    letter-spacing: 0em;
    margin-bottom: 0;
    text-align: left;
  }
}

.squareWrapper {
  width: 90px;
  height: 90px;
  text-decoration: none;
  padding: 22px;
  display: inline-block;
  border: 1px solid var(--border-color);
  background: var(--surface-primary);
  border-radius: 8px;
  transition: all 300ms ease-out;
  cursor: pointer;

  border-color: var(--ifm-btn-border-color);
  color: var(--main-font-color);
  &:hover {
    border-color: var(--ifm-btn-border-color-active);
  }
  &:active,
  &:focus {
    background: var(--code-inline-bgd-color);
    border-color: var(--indigo-700);
  }
  img {
    width: 100%;
    height: 100%;
    margin-bottom: 0;
    object-fit: contain;
  }
}

.list {
  display: grid;
  margin-top: 16px;
  width: fit-content;
  grid-template-columns: repeat(2, auto);
  gap: 16px;
  width: fit-content;
  display: flex;
  justify-content: flex-start;

  @media (max-width: 1400px) {
    flex-wrap: wrap;
  }

  &:not(.framedList) {
    @media (min-width: 1400px) {
      grid-template-columns: repeat(7, auto);
    }
    @media (min-width: 997px) and (max-width: 1400px) {
      grid-template-columns: repeat(4, auto);
    }
    @media (min-width: 816px) and (max-width: 997px) {
      grid-template-columns: repeat(7, auto);
    }
    @media (min-width: 500px) and (max-width: 816px) {
      grid-template-columns: repeat(4, auto);
    }
    @media (min-width: 410px) and (max-width: 500px) {
      grid-template-columns: repeat(3, auto);
    }
  }
  &.framedList {
    background: var(--main-bgd-color);
    border: 1px solid var(--ifm-btn-border-color);
    border-radius: 8px;
    padding: 24px 16px 16px 16px;
    justify-content: center;
    @media (min-width: 1240px) {
      grid-template-columns: repeat(6, auto);
    }
    @media (min-width: 1025px) and (max-width: 1240px) {
      grid-template-columns: repeat(3, auto);
    }
    @media (min-width: 768px) and (max-width: 1025px) {
      grid-template-columns: repeat(4, auto);
    }
    @media (min-width: 480px) and (max-width: 768px) {
      grid-template-columns: repeat(4, auto);
    }
    @media (min-width: 410px) and (max-width: 479px) {
      grid-template-columns: repeat(3, auto);
    }
    .squareWrapper {
      background: var(--surface-primary);
    }
  }
  &.splitList {
    width: fit-content;
    display: flex;
    justify-content: flex-start;
    flex-wrap: wrap;
  }
}
